browserMock.js ➔ ???   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
nc 1
dl 0
loc 3
rs 10
cc 1
nop 1
1
Object.defineProperty(document, 'CSVLink', {
2
    // value: document.createElement('a'),
3
    createElement: (val) => {
4
        return document.createElement(val)
5
    }
6
});
7
8
const constantDate = new Date('2018-03-23T04:41:20')
0 ignored issues
show
Unused Code introduced by
The constant constantDate seems to be never used. Consider removing it.
Loading history...
9
10
Date = class extends Date {
0 ignored issues
show
Comprehensibility introduced by
You are shadowing the built-in type Date. This makes code hard to read, consider using a different name.
Loading history...
11
    constructor() {
12
        super();
13
        return constantDate
0 ignored issues
show
Bug introduced by
The variable constantDate seems to be never declared. If this is a global, consider adding a /** global: constantDate */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
Bug introduced by
The constructor does not have a meaningful return value. Are you sure this is correct?
Loading history...
14
    }
15
}
16